<template>
	<view>


		<!-- <uni-section title="我是你爸爸" subTitle="是的我是你爸爸去" type="line" padding >
		</uni-section> -->
		<view class="comments-box">

			<uni-easyinput prefixIcon="chat" v-model="value" placeholder="有话要说,快来评论" @iconClick="iconClick"
				suffixIcon="paperplane-filled" maxlength=-1 focus>
			</uni-easyinput>
			<view class="aaa" @click.stop="add(item)">
				<image src="../../static/动态点亮爱心.png" mode="" class="details-box-down-left" v-if="item.ifLove">
				</image>
				<image src="../../static/动态爱心.png" mode="" class="details-box-down-left" v-else></image>
				<text>1.1万</text>
			</view>

			<view class="bbb" @click.stop="collect(item,userId)">
				<image src="../../static/五角星.png" mode="" class="details-box-down-center" v-if="item.ifCollect">
				</image>
				<image src="../../static/五角星空.png" mode="" class="details-box-down-center" v-else></image>
				<text>1.1万</text>
			</view>
		</view>









	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: '',
				password: '',
				placeholderStyle: "color:#2979FF;font-size:14px",
				styles: {
					color: '#2979FF',
					borderColor: '#2979FF'
				}
			}

		},
		onLoad() {},
		onReady() {},
		methods: {
			input(e) {
				console.log('输入内容：', e);
			},
			iconClick(type) {
				uni.showToast({
					title: `点击了${type==='prefix'?'左侧':'右侧'}的图标`,
					icon: 'none'
				})
			}
		}
	}
</script>

<style lang="scss">
	.comments-box {
		width: 750rpx;
		display: flex;
		background-color: #fff;


		.aaa {
			display: flex;
			align-items: center;
			justify-content: center;
			margin-left: 10rpx;

			.details-box-down-left {
				width: 50rpx;
				height: 50rpx;
				margin-right: 10rpx;
			}

		}

		.bbb {
			display: flex;
			align-items: center;
			justify-content: center;
			margin-right: 10rpx;


			.details-box-down-center {
				width: 50rpx;
				height: 50rpx;
				margin: 0 10rpx;
			}
		}
	}
</style>